﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;

namespace MSAS.DIP.Common
{
    public class RetryArgs : CancelEventArgs
    {
        public int Tries { get; private set; }
        public Exception ThrownException { get; private set; }
        public TimeSpan NextSleep { get; private set; }

        public RetryArgs(int tries, TimeSpan nextSleep, Exception ex)
        {
            Tries = tries;
            NextSleep = nextSleep;
            ThrownException = ex;
        }
    }
}
